import { Pipe, PipeTransform } from '@angular/core';
import {OrderState} from "../../models/OrderNumber";

/**
 * Generated class for the GetStateNamePipe pipe.
 *
 * See https://angular.io/docs/ts/latest/guide/pipes.html for more info on
 * Angular Pipes.
 */
@Pipe({
  name: 'getState',
})
export class GetStateNamePipe implements PipeTransform {
  /**
   * Takes a value and makes it lowercase.
   */
  transform(key: number, ...args) {
    return OrderState[key];
  }
}
